package com.imooc.spring.reflect.entity;

/**
 * Description：
 *
 * @Author: spring
 * @Date: 2021/6/16
 */
public class Dog {
    static{
        System.out.println("Dog类已经 被加载到JVM中，并已初始化。");
    }
    private String name;
    private Integer age;

    public Dog() {
        System.out.println("无参构造函数");
    }

    public Dog(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
